<template>
  <div>
      <header class="header">
          <img src="../../assets/img/cons.png" alt=""/>
          <h1>
             <slot></slot> 
          </h1>
      </header>
  </div>
</template>

<script>
export default {
    name: 'MyHeader'

}
</script>

<style lang="scss" scoped>
  .header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: .44rem;
    background-color: #ed4040;
    color: #fff;
    font-size: .18rem;
    
    img {
      width: .23rem;
      margin-right: .05rem
    }
    h1{
      font-size: .2rem;
    }
  }
</style>